package com.EM1.www.po;
import java.sql.Array;
import java.util.ArrayList;

public class Teacher extends User{
    private String subject;
    private ArrayList<Integer> grade;
    private String intruduction;

    public Teacher(int id, String name, String password, boolean isteacher, String subject, ArrayList<Integer> grade, String intruduction) {
        super(id, name, password, isteacher);
        this.subject = subject;
        this.grade = grade;
        this.intruduction = intruduction;
    }

    @Override
    public String toString() {
        return "Teacher{" +
                "subject='" + subject + '\'' +
                ", grade=" + grade +
                ", intruduction='" + intruduction + '\'' +
                '}';
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public ArrayList<Integer> getGrade() {
        return grade;
    }

    public void setGrade(ArrayList<Integer> grade) {
        this.grade = grade;
    }

    public String getIntruduction() {
        return intruduction;
    }

    public void setIntruduction(String intruduction) {
        this.intruduction = intruduction;
    }

    public Teacher(String subject, ArrayList<Integer> grade, String intruduction) {
        this.subject = subject;
        this.grade = grade;
        this.intruduction = intruduction;
    }
}
